package cn.ly.draw;

import java.util.Scanner;

/**
 * 画星星图
 * @author liuyu21
 *
 */
public class DrawPic {
	
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		drawDiamond(n);
		System.out.println();
		drawThree(n);
	}
	
	public static void drawThree(int n){
		int m = n/2;
		for(int i = 0; i < m; i++){
			for(int j = i; j < m; j++){//让循环次数逐渐变小
				System.out.print(" ");
			}
			for(int j = 0; j < 2*i+1; j++){
				System.out.print("*");
			}
			System.out.println();
		}
	}
	
	
	public static void drawDiamond(int n){
		drawThree(n);
		int m = n/2;
		int k = m;
		for(int i = 0; i < m; i++){
			for(int j = 0; j < i + 1 + 1; j++){//让循环次数逐渐变大
				System.out.print(" ");
			}
			
			for(int j = 0; j < 2*k-3; j++){
				System.out.print("*");
			}
			k--;
			System.out.println();
		}
	}

}
